override-prime ignore failure on rebuild
Metadata
Current evaluation
No evaluation has been recorded for this issue yet.
Issue body
When the command executed in override-prime fails, relaunching the snap build skip the prime step and mark it as already ran and create the .snap file.
The expected behaviour is that it re-run the prime step.
To reproduce, you need this snapcraft.yaml
```
name: my-snap-name
base: core20
version: '0.1'
summary: Single-line elevator pitch
description: |
This is my-snap's description.
grade: devel
confinement: devmode
parts:
my-part:
plugin: nil
override-prime: |
this_command_does_not_exist
```
Call snapcraft, it fails (expected)
Call snapcraft again, it succeeds (not expected)
To properly re-execute the prime step the only two solutions are: clean the build or change the override-prime script.
snapd version: 2.58
snapcraft version: 7.2.9
Evaluation history
No evaluation history available.